package com.pureut.storage.controller;

import com.pureut.storage.dto.ProductionMaterialReturnDetailDto;
import com.pureut.storage.service.ProductionMaterialReturnDetailService;
import com.sale.common.core.web.controller.BaseController;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/***
 * 生产退料明细控制层
 * Author:C
 * Date:2023/01/29 10:41
 * @DESC
 */
@RestController
@RequestMapping("/production-detail")
public class ProductionMaterialReturnDetailController extends BaseController {

    @Resource
    ProductionMaterialReturnDetailService productionMaterialReturnDetailService;

    /**
     * 生产退料明细列表
     */
    @GetMapping("/list")
    public TableDataInfo<ProductionMaterialReturnDetailDto> getList(Long id, PageQuery pageQuery) {
        //查询生产退料明细列表
        return productionMaterialReturnDetailService.getProductionDetail(id,pageQuery);
    }
}
